package com.gl.saas.basis.server.sms.utils;

import java.util.Random;

public class CodeUtils {
    private static final  String[] numbers={"0","1","2","3","4","5","6","7","8","9"};


    public static String radomCode(){
        StringBuffer buffer=new StringBuffer();
        for (int i = 0; i <6 ; i++) {
            Random random=new Random();
            int nextInt = random.nextInt(numbers.length);
            buffer.append(numbers[nextInt]);
        }
        return buffer.toString();
    }


}
